/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author YDZ
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface PmParcraetetsflow extends BasicModel<PmParcraetetsflow> {
  name?: string; // name
  createDate?: string; // 创建时间
  requestname?: string; // 流程标题
  flowcode?: string; // 流程标识
  creatercode?: string; // 流程创建人
  cutintervaldate?: string; // 停水时段-开始
  endcutintervaldate?: string; // 停水时段-结束
  cuthours?: string; // 停水时间(小时)
  influencesnum?: string; // 影响户数
  pipediameter?: string; // 涉及管道直径(mm)
  programcategory?: string; // 计划类别
  scale?: string; // 停水规模
  annualplanno?: string; // 年度编号
  enclosure?: string; // enclosure
  groupleader?: string; // 计划停水领导小组长
  sceneleaderandcontact?: string; // 申请部门现场负责人及联系方式
  cutreason?: string; // 停水原因
  cutrange?: string; // 停水范围
  depthead?: string; // 部门负责人
  isdeptheadapproved?: string; // 是否由科室负责人审批
  enclosurename?: string; // enclosurename
  result?: string; // 单据状态
  mid?: string; // 主表ID
}

export const pmParcraetetsflowList = (params?: PmParcraetetsflow | any) =>
  defHttp.get<PmParcraetetsflow>({ url: adminPath + '/process/job/pmParcraetetsflow/list', params });

export const pmParcraetetsflowListData = (params?: PmParcraetetsflow | any) =>
  defHttp.post<Page<PmParcraetetsflow>>({ url: adminPath + '/process/job/pmParcraetetsflow/listData', params });

export const pmParcraetetsflowForm = (params?: PmParcraetetsflow | any) =>
  defHttp.get<PmParcraetetsflow>({ url: adminPath + '/process/job/pmParcraetetsflow/form', params });

export const pmParcraetetsflowSave = (params?: any, data?: PmParcraetetsflow | any) =>
  defHttp.postJson<PmParcraetetsflow>({ url: adminPath + '/process/job/pmParcraetetsflow/save', params, data });

export const pmParcraetetsflowDelete = (params?: PmParcraetetsflow | any) =>
  defHttp.get<PmParcraetetsflow>({ url: adminPath + '/process/job/pmParcraetetsflow/delete', params });
